package rudia.net.user.web;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import rudia.org.core.RuMap;
import rudia.org.core.Rutil;
import rudia.org.user.service.UserService;

@Controller
public class LoginController {

	@Autowired
	private UserService userService;

	@RequestMapping("/login/form")
	public String form(HttpServletRequest request) {

		return "rudia/user/login/form";
	}

	@RequestMapping("/login/login")
	public String login(HttpServletRequest request) {
		
		return "rudia/user/login/login";
	}
	
	@RequestMapping("/login/action")
	public String action(HttpServletRequest request, RuMap<?, ?> rumap) {
		
		Rutil.log.debug("=====Action===="+ rumap.get("user_id"));
		return "rudia/user/login/form";
	}

}
